<?php
namespace app\index\controller;
use app\index\model\User as UserModel;
use app\index\model\Usouquan as UsouquanModel;
use app\index\model\Uquanxian as UquanxianModel;
use app\index\model\GrmUserUrole as UserUroleModel;
use app\index\model\Urole as UroleModel;
use app\index\controller\Request as requestCon;
use app\index\controller\Publicer as publicerCon;
use think\Controller;
use think\Requist;
class User extends Controller
{
    public $userModel;
    public $souquanModel;
    public $requestCon;
    public $uquanxianModel;
    public $uroleModel;
    public $userroleModel;
    public $publicercon;
    public function _initialize()
    {
        $this->userModel = new UserModel();
        $this->usouquanModel = new UsouquanModel();
        $this->requestCon = new requestCon();
        $this->uquanxianModel = new UquanxianModel();
        $this->uroleModel = new UroleModel();
        $this->userroleModel = new UserUroleModel();
        $this->publicercon = new publicerCon();
    }

	//登录注册及找回密码
    public function enter()
    {
        return $this->fetch(); 	
    }
    //购物车
    public function cart()
    {
    	return $this->fetch();
    }
    //下单
    public function xiadan()
    {
        return $this->fetch();
    }
    //个人中心首页
    public function index()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //个人资料
    public function information()
    {
        $re = $this->publicercon->gerenXinxi();
        $this->assign('name',$re['user']['name']);
        $this->assign('vip', $re['user']['vip']);
        $this->assign('sex',$re['user']['sex']);
        $this->assign('touxiang',$re['user']['touxiang']);
        //$this->assign('shengri',$re['shengri']);
        $this->assign('number',$re['number']['enter_num']);
        $this->assign('email',$re['email']['enter_num']);
        //dump($re);
        return $this->fetch();
    }
    //安全设置
    public function safety()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //修改密码
    public function password()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //支付密码
    public function setpay()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //绑定手机
    public function bindphone()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //验证邮箱
     public function email()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //实名认证
    public function idcard()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //安全问题
    public function question()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //收货地址
    public function address()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //订单管理
    public function order()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //物流
    public function logistics()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //订单详情
    public function orderinfo()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //退换货
    public function refund()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //退款售后
     public function change()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //欠款去向
     public function record()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
      //优惠劵
     public function coupon()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //我的红包
    public function bonus()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //账单明细
    public function billlist()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //个人账单
    public function bill()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //我的收藏
     public function collection()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //我的足迹
     public function foot()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //评价管理
     public function comment()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
     //发表评论
     public function commentlist()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
    //我的消息
    public function news()
    {
        $this->assign('name',session('name'));
        return $this->fetch();
    }
}
